

module.exports = app => {
    const { router, controller } = app;
    const jsonp = app.jsonp();
    const namespace = `/api/${app.config.xsoaHandler.localServerName}`;
    const homeRouter = router.namespace(namespace);
    homeRouter.get('/', jsonp,controller.push.ttbPush.list);
    homeRouter.post('/', jsonp,controller.push.ttbPush.pushdeal);
    homeRouter.post('/:id', jsonp,controller.push.ttbPush.push);
    homeRouter.get('/detail', jsonp,controller.push.ttbPush.pushDetail);
} 